#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    int percentageLetter(string s, char letter) {
        map<char, int> m1;
        for (auto& e : s)
        {
            m1[e]++;
        }
        if (m1.count(letter) == 0)
            return 0;

        return int((double)m1[letter] / s.size() * 100);
    }
};